package com.matchmaking.system.mapper;

import com.matchmaking.system.domain.SysMenu;
import com.matchmaking.system.domain.vo.SysMenuEchartsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysMenuMapper {

     List<SysMenu> list(SysMenu sysMenu);

     List<SysMenu> getSonMenu(Long id);

     void updateStatusById(@Param("id") Long id, @Param("i") int i);

     List<SysMenu> getParentMenu();

     Long getIdByName(String name);

     void insertMenu(SysMenu sysMenu);

     String getNameByParentId(Integer parentId);

     Integer updateById(SysMenu sysMenu);

    List<SysMenuEchartsVo> getNumByMenuType();

     void delById(Long id);
}
